using System.Collections.Generic;

using Xc.DataAccess.AepCoapCore.Models.Apis.Core;

namespace Xc.DataAccess.AepCoapCore.Models.Apis
{
    class Aep_rule
    {
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string QueryRuleByRuleId(string appKey, string appSecret, string body)
        {
            string path = "/Aep_rule/rule";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20181031175724";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string saasUpdateRule(string appKey, string appSecret, string body)
        {
            string path = "/Aep_rule/api/v2/rule/sass/updateRule";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190810004339";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string saasDeleteRuleEngine(string appKey, string appSecret, string body)
        {
            string path = "/Aep_rule/api/v2/rule/sass/deleteRule";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190814092635";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string saasQueryRule(string appKey, string appSecret, string body)
        {
            string path = "/Aep_rule/api/v2/rule/sass/queryRule";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190810004329";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }
        //参数body: 类型json, 参数不可以为空
        //  描述:body,具体参考平台api说明
        public static string saasCreateRule(string appKey, string appSecret, string body)
        {
            string path = "/Aep_rule/api/v2/rule/sass/createRule";
            Dictionary<string, string> headers = null;
            Dictionary<string, string> param = null;
            string version = "20190814092222";

            string application = appKey;
            string key = appSecret;


            string response = AepHttpRequest.SendAepHttpRequest(path, headers, param, body, version, application, null, key, "POST");
            if (response != null)
                return response;
            return null;
        }

    }
}
